package com.chuantou.yuba.api.to;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class BDAddressTO implements Parcelable {
	// 国家
	@SerializedName("country")
	private String country;
	// 省份
	@SerializedName("province")
	private String province;
	// 城市
	@SerializedName("city")
	private String city;
	// 行政区
	@SerializedName("district")
	private String district;
	// 街道
	@SerializedName("street")
	private String street;

	public BDAddressTO() {
	}

	public BDAddressTO(Parcel source) {
		this.country = source.readString();
		this.province = source.readString();
		this.city = source.readString();
		this.district = source.readString();
		this.street = source.readString();

	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(country);
		dest.writeString(province);
		dest.writeString(city);
		dest.writeString(district);
		dest.writeString(street);
	}

	public static final Creator<BDAddressTO> CREATOR = new Creator<BDAddressTO>() {

		@Override
		public BDAddressTO[] newArray(int size) {
			return new BDAddressTO[size];
		}

		@Override
		public BDAddressTO createFromParcel(Parcel source) {
			return new BDAddressTO(source);
		}
	};

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

}
